/*
  Commands that can be triggered from the command palette.
  These commands must be exactly the same as the contributed commands in package.json.
*/
export const USER_COMMANDS = {
  SET_TOKEN: 'csdn.setToken',
  WEBVIEW: 'csdn.openWebview',
  JSON_FORMAT: 'csdn.jsonFormat',
  HTTP_REQUEST: 'csdn.httpRequest',
  DO_HTTP_REQUEST: 'csdn.doHttpRequest',
  REMOVE_TOKEN: 'csdn.removeToken',
  SHOW_ISSUES_ASSIGNED_TO_ME: 'csdn.showIssuesAssignedToMe',
  SHOW_MERGE_REQUESTS_ASSIGNED_TO_ME: 'csdn.showMergeRequestsAssignedToMe',
  OPEN_ACTIVE_FILE: 'csdn.openActiveFile',
  COPY_LINK_TO_ACTIVE_FILE: 'csdn.copyLinkToActiveFile',
  OPEN_CURRENT_MERGE_REQUEST: 'csdn.openCurrentMergeRequest',
  OPEN_CREATE_NEW_ISSUE: 'csdn.openCreateNewIssue',
  OPEN_CREATE_NEW_MR: 'csdn.openCreateNewMR',
  OPEN_PROJECT_PAGE: 'csdn.openProjectPage',
  OPEN_CURRENT_PIPELINE: 'csdn.openCurrentPipeline',
  PIPELINE_ACTIONS: 'csdn.pipelineActions',
  ISSUE_SEARCH: 'csdn.issueSearch',
  MERGE_REQUEST_SEARCH: 'csdn.mergeRequestSearch',
  PROJECT_ADVANCED_SEARCH: 'csdn.projectAdvancedSearch',
  COMPARE_CURRENT_BRANCH: 'csdn.compareCurrentBranch',
  CREATE_SNIPPET: 'csdn.createSnippet',
  INSERT_SNIPPET: 'csdn.insertSnippet',
  CREATE_NOTE: 'csdn.createNote',
  OPEN_NOTE_DOCUMENT: 'csdn.openNoteDocument',
  VALIDATE_CI_CONFIG: 'csdn.validateCIConfig',
  SHOW_OUTPUT: 'csdn.showOutput',
  REFRESH_SIDEBAR: 'csdn.refreshSidebar',
  RESOLVE_THREAD: 'csdn.resolveThread',
  UNRESOLVE_THREAD: 'csdn.unresolveThread',
  DELETE_COMMENT: 'csdn.deleteComment',
  START_EDITING_COMMENT: 'csdn.startEditingComment',
  CANCEL_EDITING_COMMENT: 'csdn.cancelEditingComment',
  SUBMIT_COMMENT_EDIT: 'csdn.submitCommentEdit',
  CREATE_COMMENT: 'csdn.createComment',
  CHECKOUT_MR_BRANCH: 'csdn.checkoutMrBranch',
  CLONE_WIKI: 'csdn.cloneWiki',
  CREATE_SNIPPET_PATCH: 'csdn.createSnippetPatch',
  OPEN_SNIPPET: 'csdn.openSnippet',
  OPEN_PROJECT_SNIPPET: 'csdn.openProjectSnippet',
  UTILITY: 'csdn.utilities',
};

/*
  User can't trigger these commands directly. We use them from within the code.
*/
export const PROGRAMMATIC_COMMANDS = {
  SHOW_RICH_CONTENT: 'csdn.showRichContent',
  NO_IMAGE_REVIEW: 'csdn.noImageReview',
};

export const VS_COMMANDS = {
  DIFF: 'vscode.diff',
  OPEN: 'vscode.open',
  GIT_SHOW_OUTPUT: 'git.showOutput',
  GIT_CLONE: 'git.clone',
};
